<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>物流信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <!--<style type="text/css">-->
        <!--.productli{height:80px; width:340px; float:left;}-->
        <!--.productimg{width:100px;height:65px; float:left; margin-right:5px;}-->
        <!--.productdiv{color:#000; float:left;}-->
    <!--</style>-->
</head>
<body>

<div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">

        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend id="leg">物流信息</legend>
        </fieldset>
        <ul class="layui-timeline" id="loginfo">

        </ul>
    </div>
</div>

<script src="/layui/jquery.min.js"></script>
<script src="/layui/layui.js"></script>
<!--<script src="/js/common.js"></script>-->
<script type="application/javascript">
 $(function () {
     var no=parent.logNo;//.substr(3,parent.logNo.length);
     var noinfo="物流信息"+no;
     $("#leg").html(noinfo);
     $.ajax({
         url: '/goods?url=Order%2FgetLogInfoData&logisticsNo='+no+'',
         type: 'post',
         dataType: 'json',
         contentType: 'application/json',
         async: false,
         success: function(data){
             //alert(JSON.stringify(data));
             if(data.code=="000000") {
                 if(data.data.status=="200"){
                     var info="";
                     $.each(data.data.data, function(i, item){
                         info +="<li class='layui-timeline-item'>" +
                             "    <i class='layui-icon layui-timeline-axis'></i>" +
                             "    <div class='layui-timeline-content layui-text'><h3 class='layui-timeline-title'>"+item.ftime+"</h3>" +
                             "      <div class='layui-timeline-title'>"+item.context+"</div>" +
                             "    </div>" +
                             "  </li>";
                     });
                     $("#loginfo").append(info);
                 }
                 else {
                     $("#loginfo").append("单号无记录");
                 }
//orderLogisticalEdit
             }
         }
     });
 });
</script>
</body>
</html>